package com.stoa.floatlib.core

import android.app.Activity
import android.os.Bundle
import com.blankj.utilcode.util.ActivityUtils
import kotlin.reflect.KClass

internal class StoaIntent {
    lateinit var target: AbsStoaFloatView
    lateinit var bundle: Bundle
    lateinit var tag: String
    lateinit var activity: Activity
    var mode: Int = MODE_SINGLE_INSTANCE

    constructor(target: AbsStoaFloatView) {
        this.target = target
        activity = ActivityUtils.getTopActivity()
        tag = target.viewTag
        bundle = Bundle()
    }

    companion object {
        const val MODE_SINGLE_INSTANCE = 1
        const val MODE_ONCE = 2
    }
}